package com.example.springboot.service.imp;

import com.example.springboot.bean.Document;
import com.example.springboot.repository.DocumentRepository;
import com.example.springboot.service.DocumentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by tang on 2017/12/18.
 */
@Service
public class DocumentServiceImp implements DocumentService {

    @Autowired
    DocumentRepository documentRepository;


    @Override
    public void save(Document document) {
        documentRepository.save(document);
    }
}
